<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/m/include/init_mobile.jsp" %>
<%@ page import="com.qbooks.board.*" %>
<%
	
	String board_id			= StringUtil.nvl(request.getParameter("board_id"));
	String curr_page 		= StringUtil.nvl(request.getParameter("curr_page"), "1");

	BoardDAO dao 		= new BoardDAO();
	
	HashMap infos = new HashMap();
	infos.put("board_id",		board_id);
	infos.put("curr_page",		curr_page);
	
	HashList boardInfo		= dao.selectBoardInfo(infos);
	HashList wordList 		= dao.selectWordList(infos);
	
	String pagingHtml		= dao.getPageHtmlMobile(infos, "./wordList.app?board_id="+board_id);
	

%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
	<title><%= HOME_NAME %></title>
	<%@ include file="/m/include/cssnjs.jsp"  %>
	
	
	<script type="text/javascript">
	$(document).ready(function() {
		$('#header-nav li:nth-child(4)').addClass('on');
	});
	</script>
	
</head>
<body>
    <div id="wrap">
		<%@ include file="/m/include/header.jsp"  %>
		<div id="contents">
        	<ul id="word_list">
<%		for (int i = 0; i < wordList.size(); i++) { %>
				<li>
					<a href="./wordView.jsp?os=<%=os%>&word_id=<%= wordList.get("word_id",i)%>&curr_page=<%=curr_page%>">
						<%= wordList.get("subject",i) %>
						<p class="init_date"><%= wordList.get("init_date",i) %></p>
					</a>
				</li>
<%		} %>
        	</ul>
        	
        	<%-- <div class="pagination">
				<%= pagingHtml %>
        	</div> --%>
        	
        </div>
  	</div>
</body>
</html>
